home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / • Some Useful Utilities / Makefile next >
Encoding:
Makefile  |  1996-09-30  |  1.3 KB  |  40 lines  |  [TEXT/MPS ]

  1. #  This is a Makefile template that you can use with your own projects.
  2.  
  3. scriptName                = 'My Proc'
  4. debugScriptName            = "{scriptName}.debug"
  5.  
  6. sourceFile                = "FindTargetFile"
  7.  
  8. OBJECTS                    = {sourceFile}.c.o
  9. InstallerCIncDir        = ':::DeveloperInterfaces:CIncludes:'
  10. InstallerCSrcDir        = ':::DeveloperInterfaces:CSources:'
  11. InstallerRIncDir        = ':::DeveloperInterfaces:RIncludes:'
  12. InstallerDebuggerDir    = ':::Tools:Released:Installer Debugger 4.0.3:'
  13.  
  14. COptions        = -b -r -sym on
  15. LinkOptions        = -mf -sym on
  16.  
  17. "{debugScriptName}" ƒ {scriptName}
  18.     Duplicate -y {scriptName} {scriptName}" w/ Debugger"
  19.     Rez {InstallerDebuggerDir}"InstallerDebugger.r" -append -o {scriptName}" w/ Debugger"
  20.  
  21. {scriptName} ƒƒ {sourceFile} {scriptName}.r
  22.     set theTime    "'`date -d -s` 12:00:00 PM'"
  23.     Rez {scriptName}.r -o {scriptName} -t 'kajr' -c 'kajr' -i {InstallerRIncDir}
  24.     SetFile -a b -d {theTime} {scriptName}
  25.     {ScriptCheckDir}ScriptCheck {scriptName} -h -d -a
  26.     SetFile -m {theTime} {scriptName}
  27.  
  28.  
  29. {sourceFile} ƒƒ Makefile {OBJECTS}
  30.     Link {LinkOptions} -t rsrc -c RSED -rt infn=401 -m {sourceFile} -sg {sourceFile} ∂
  31.         {OBJECTS} ∂
  32.         "{Libraries}"Interface.o ∂
  33.         "{Libraries}MacRuntime.o" ∂
  34.         "{Libraries}IntEnv.o" ∂
  35.         -o {sourceFile}
  36.         
  37. {sourceFile}.c.o ƒ Makefile {sourceFile}.c
  38.     SC {COptions} {sourceFile}.c -i {InstallerCIncDir},{InstallerCSrcDir},{InstallerRIncDir}
  39.  
  40.